<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui"
	xmlns:pm="http://primefaces.org/mobile"
	xmlns:pt="http://xmlns.jcp.org/jsf/passthrough"
	xmlns:b="http://bootsfaces.net/ui"	
	template="/templates/layout_mb.xhtml">

	<ui:define name="pcontent">	
	<h4>&#160;&#160;收货单明细【#{mobileReceiptMB.selectedReceipt.bmeReceiptDetails.size()}】</h4>	
	<b:well>
	<h:form id="dataForm">
	<!-- <p:graphicImage name="images/wechat/signed.png"></p:graphicImage> -->
		<p:growl id="msgs" showDetail="true" />
		<h:outputText value="收货单号：#{mobileReceiptMB.selectedReceipt.id}" style="font-weight:bold"/>	<br />				
           <h:outputText value="供应商：#{mobileReceiptMB.selectedReceipt.supplier}" style="font-weight:bold"/> <br />
           
		<p:dataList var="qrow" value="#{mobileReceiptMB.selectedReceipt.bmeReceiptDetails}"  type="ordered">
              	<h:outputText value="物料编号：#{qrow.bmeMaterial.id}" style="font-weight:bold"/>	<br />
              	<h:outputText value="物料名称：#{qrow.bmeMaterial.mdesc}"/>	<br />
              	<h:outputText value="送货数量：#{qrow.mquantity}" style="color:blue;"/>	<br />
              					
              	<h:outputText value="签收数量："/> 
              	<p:inputText value="#{qrow.squantity}" required="true"  requiredMessage="签收数量不能为空"/><br />
              	<h:outputText value="破损数量："/> 
              	<p:inputText value="#{qrow.dquantity}" /><br />
              	<h:outputText value="备&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;注："/> 
              	<p:inputText value="#{qrow.remarks}" /> <br />
              	<p:separator />
		</p:dataList>				
		<br />
		<h:panelGrid columns="3" cellspacing="30" styleClass="btnCenter">
			<p:commandButton  value="签收 " icon="ui-icon-check"	update="dataForm"	
				action="#{mobileReceiptMB.signAction}" style="font-size:16px;color:white;background-color:#3366AA;">
			</p:commandButton>
			<p:commandButton  value="提交流程" icon="ui-icon-check"	update="msgs"	
				action="#{mobileReceiptMB.commitTask}" style="font-size:16px;color:white;background-color:#3366AA;" rendered="#{mobileReceiptMB.taskFlag}">
			</p:commandButton>
			<p:button outcome="mb_receipt_sign_query.xhtml" value="返回" icon="ui-icon-close" style="font-size:16px;color:white;background-color:#3366AA;"/>
		</h:panelGrid>			
						
	</h:form>
	</b:well>
	</ui:define>

</ui:composition>